module.exports = {
    devServer: {
        proxy: {
            '/api': {
                target: 'http://120.24.91.70:3005',
                // target: 'http://localhost:3005',
                // changeOrigin: true,
                pathRewrite: {
                    '^/api': '/api/v1'
                }
            }
        }
    }, productionSourceMap: false,
    publicPath: process.env.NODE_ENV === "production" ? "./" : "/",
    lintOnSave: false,
    chainWebpack(config) {
        // 移除打包后 index.html 所有打包好的文件都预加载行为
        config.plugins.delete("preload");
        config.plugins.delete("prefetch");
    },
}
